var actmodel = {
  taskid: 1,
  task: {},
  /**
   * 创建任务
   */
  create() {
    var newid = actmodel.taskid
    actmodel.taskid++
    actmodel.task[newid] = { id: newid, status: 1 };
    return newid;
  },

  del(taskid){
    if (actmodel.task[taskid]) {
      delete actmodel.task[taskid];
      return true
    }
    return false;
  }
}
module.exports = actmodel;